package com.miracle.erp.util;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 方法 forward 
 * 职业跳转web-inf下的jsp文件夹
 * @author MARECLE_YING
 * @Date 2021年3月23日
 */
public class ForwardUtil {
		public static void forward(HttpServletRequest req,
				HttpServletResponse resp, String viewName)
						throws ServletException, IOException{
			// 所有页面规划在/WEB-INF/jsp下 且都是jsp文件
			req.getRequestDispatcher("/WEB-INF/jsp/"+viewName+".jsp")
			.forward(req,resp);
		} 
}
